package com.itheima.define;

public class ArrayDemo1 {
    public static void main(String[] args) {
        //静态初始化数组
        int[] arr = new int[]{1,2,3};
        //动态初始化数组
        int[] arr1 = new int[5];
        arr1[0] = 1;
        System.out.println(arr1[0]);

        //简化写法,如下两种写法等价
        int[] arr2 = {1,2,3};
    }
}
